/*    */ package com.zimbra.cs.dav.service.method;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.cs.dav.DavContext;
/*    */ import com.zimbra.cs.dav.DavException;
/*    */ import com.zimbra.cs.dav.resource.DavResource;
/*    */ import java.io.IOException;
/*    */ import javax.servlet.http.HttpServletResponse;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class Head
/*    */   extends Get
/*    */ {
/*    */   public static final String HEAD = "HEAD";
/*    */   
/*    */   public String getName()
/*    */   {
/* 28 */     return "HEAD";
/*    */   }
/*    */   
/* 31 */   protected boolean returnContent() { return false; }
/*    */   
/*    */   public void handle(DavContext ctxt) throws DavException, IOException, ServiceException {
/* 34 */     super.handle(ctxt);
/* 35 */     int cl = ctxt.getRequestedResource().getContentLength();
/* 36 */     if (cl > 0) {
/* 37 */       ctxt.getResponse().setContentLength(cl);
/*    */     }
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/dav/service/method/Head.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */